import cv2

# RGB颜色标准无法定义一种颜色值的范围
img = cv2.imread("./test2.png")

red_channel = img[:, :, 2]
cv2.imshow("red", red_channel)
cv2.waitKey(0)
